<?php
defined('MCACHE_DEBUG')             				|| define('MCACHE_DEBUG', false);
defined('MCACHE_DEV_SERVER')        		|| define('MCACHE_DEV_SERVER', false);
defined('MCACHE_CONNECT_TIMEOUT')		|| define('MCACHE_CONNECT_TIMEOUT', 1);

//活动server
defined('MCACHE_ACT_XLQY')	||	define('MCACHE_ACT_XLQY', 'mcache_act_xlqy');

//任务状态缓存时间
defined('MCACHE_TIME_TASK_STATE')	||	define('MCACHE_TIME_TASK_STATE', 21600); //6小时

//是否活动用户缓存时间
defined('MCACHE_TIME_ACT_USER')	||	define('MCACHE_TIME_ACT_USER', 43200); //12小时

//媒体点击数pv记录
defined('MCACHE_DMZ_AD_REG_PV') || define('MCACHE_DMZ_AD_REG_PV' , 'mcache_dmz_ad_reg_pv');

//网站注册
defined('MCACHE_DMZ_WEB_REG') || define('MCACHE_DMZ_WEB_REG', 'dmz_web_reg');

//网站注册 时间限制 30分钟
defined('MCACHE_DMZ_WEB_REG_TIME') || define('MCACHE_DMZ_WEB_REG_TIME', 1800);

##### getCacheServer start ################################################
function &getCacheServer($const_server)
{
    $ret = array();
    switch ($const_server) 
    {
		case MCACHE_DMZ_WEB_REG_TIME:
		case MCACHE_DMZ_WEB_REG:
		case MCACHE_ACT_XLQY:
		case MCACHE_DMZ_AD_REG_PV:
			 $ret[] = array( 'host' => '10.21.2.135', 'port' => 11212);
            break;
         default:
            if (MCACHE_DEBUG) { var_dump(func_get_args()); }
    }

    return $ret;
}
?>